package use;

import java.io.IOException;
import java.util.Scanner;

public class Personnel {//Personnel为员工

    public void perLogin() throws IOException {
        Login loginer = new Login();
        loginer.perLogin();
    }

    public void changePerson() throws IOException {
        Scanner user = new Scanner(System.in);
        Change changer = new Change();
        System.out.println("请选择您要进行的修改" + "1、顾客信息删除" + "2、管理员信息修改");
        String sd = user.next();
        switch (sd) {
            case "1":
                changer.deleteCustomer1();
                break;
            case "2":
                changer.changePersonnel();
                break;
            default:
                System.out.println("请重新输入");
                changePerson();
        }
    }

    public void choose() throws IOException {
        System.out.println("请选择要进行的操作");
        System.out.println("1、添加歌曲" + " " + "2、添加明星曲库" + " " + "3、删减歌曲" + " " + "4、删减明星曲库");
        Scanner sc = new Scanner(System.in);
        Songs songs = new Songs();
        String choose = sc.next();
        switch (choose) {
            case "1":
                songs.songAdd();
                break;
            case "2":
                songs.starAdd();
                break;
            case "3":
                songs.songReduce();
                break;
            case "4":
                songs.starReduce();
                break;
            default:
                choose();
                System.out.println("功能号不存在！请正确输入功能号！");
        }
    }
}